
export default {
	state: {
		goods: {
			
		},
		address :{
			
		},
		cartReadyCreateObj:{},
		sku:{}
	},
	mutations: {
		
		SAVE_CART_READY_CREATE_OBJ(state, info) {
			// 保存房源信息，用于房源上传时暂存
			state.cartReadyCreateObj = Object.assign({}, state.cartReadyCreateObj, info)
		},
		CLEAR_CART_READY_CREATE_OBJ(state){
			state.cartReadyCreateObj={}
		},
		
		SAVE_SKU(state, info) {
			// 保存房源信息，用于房源上传时暂存
			state.sku = Object.assign({}, state.sku, info)
		},
		CLEAR_SKU(state){
			state.sku={}
		},
		
		SAVE_ADDRESS_INFO(state, info) {
			// 保存房源信息，用于房源上传时暂存
			state.address = Object.assign({}, state.address, info)
		},
		CLEAR_ADDRESS_INFO(state){
			state.address={}
		},
		SAVE_GOODS_INFO(state, info) {
			// 保存房源信息，用于房源上传时暂存
			state.goods = Object.assign({}, state.goods, info)
		},
		CLEAR_GOODS_INFO(state){
			state.goods={}
		}
	},
	actions: {
	},
	getters: {
		goods: state => state.goods,
		address: state => state.address,
		cartReadyCreateObj: state => state.cartReadyCreateObj,
		sku:state => state.sku
	}
}

